package com.haiyou.dc.es.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import javax.persistence.*;
import java.io.Serializable;


/**
 * 房屋图片信息
 *
 * @author Administrator
 * @date 2020-01-20 16:11:34
 */
@ApiModel(value = "房屋图片信息")
@Data
@Accessors(chain = true)
@Table(name = "es_house_picture")
public class EsHousePicture implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @ApiModelProperty(value = "id", name = "id")
    private Integer id;

    /**
     * 所属房屋id
     */
    @Column(name = "house_id")
    @ApiModelProperty(value = "所属房屋id", name = "houseId")
    private Integer houseId;

    /**
     * 图片路径
     */
    @Column(name = "cdn_prefix")
    @ApiModelProperty(value = "图片路径", name = "cdnPrefix")
    private String cdnPrefix;

    /**
     * 宽
     */
    @Column(name = "width")
    @ApiModelProperty(value = "宽", name = "width")
    private Integer width;

    /**
     * 高
     */
    @Column(name = "height")
    @ApiModelProperty(value = "高", name = "height")
    private Integer height;

    /**
     * 所属房屋位置
     */
    @Column(name = "location")
    @ApiModelProperty(value = "所属房屋位置", name = "location")
    private String location;

    /**
     * 文件名
     */
    @Column(name = "path")
    @ApiModelProperty(value = "文件名", name = "path")
    private String path;

}
